<%@page import="com.hotel.test.service.LocalLocalServiceUtil"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@include file="/html/init.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
PortletURL editHotelURL = renderResponse.createActionURL();
editHotelURL.setParameter(ActionRequest.ACTION_NAME, "updateHotel");

Hotel hotel = (Hotel)request.getAttribute("hotel");
%>

<aui:form method="POST" action="<%=editHotelURL.toString() %>">
<aui:input name="hotelId" type="hidden" value="<%=hotel.getHotelId() %>"></aui:input>
<aui:input name="hotelName" type="text" value="<%=hotel.getHotelName() %>" label="Ten Khach San" size = "45"></aui:input>
 <aui:select name="local">
	<%
		List<Local> locals = LocalLocalServiceUtil.getAll();
		if(locals.size() != 0)
		{
			for(Local local: locals)
			{
				
				%>
					<aui:option selected="vien" value="<%=local.getLocalId() %>"><%=local.getLocalName() %></aui:option>
				<%
			}
		}
	%>
</aui:select> 
<aui:select  name="quality">
		<aui:option selected="mot Sao" value="1" >1 Sao</aui:option>
		<aui:option selected="hai Sao" value="2" >2 Sao</aui:option>
		<aui:option selected="ba Sao" value="3" >3 Sao</aui:option>
		<aui:option selected="bon Sao" value="4" >4 Sao</aui:option>
		<aui:option selected="nam Sao" value="5" >5 Sao</aui:option>
	</aui:select>
<aui:input  type = "textarea" name = "introduce" cols= "120" rows = "15"></aui:input>
<aui:input name="image" type="text" label="Anh Dai Dien" size = "45"></aui:input>
<aui:input name="address" type="text" label="Dia chi" size = "45"></aui:input>
<aui:input name="email" type="text" label="email" size = "45"></aui:input>
<aui:input name="phone" type="text" label="so dien thoai" size = "45"></aui:input>

<aui:button type="submit" value="Save"/>
</aui:form>
</body>
</html>